﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ForrajesStock.aspx.cs" Inherits="ForrajeriaFRONT.Reportes.ForrajesStock" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
   <script type="text/javascript">

       function enableField() {
           txtstock = document.getElementById('<%=txtStock.ClientID%>');
           checkTheBox = document.getElementById('<%=chkStockminimo.ClientID%>');
           if (checkTheBox.checked == true) {
               txtstock.disabled = true;
               txtstock.value = '';
               

           }
           else {

               txtstock.disabled = false;
               txtstock.value = '';
           }


       }
   </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
     <center>
        <table>
        <thead>
        <tr>
        <th colspan="3"><h2>Reporte Stock Forraje</h2></th>
        </tr>
        </thead>
        <tbody>
        <tr>
        <td>
        <asp:Label ID="lblforraje" Text="Forraje:" runat="server" Font-Size="Large" />
        </td>
        <td class="asd">
        <asp:TextBox ID="txtForraje" runat="server" Width="150px" />
        </td>
         <td rowspan="2">
        <asp:Button ID="btnFiltrar" Text="Filtrar" runat="server" Width="89px" 
                 onclick="btnFiltrar_Click" />
        </td>
        </tr>
        <tr>
        <td>
        <asp:Label ID="lblProveedor" Text="Stock:" runat="server" Font-Size="Large" />
        </td>
        <td align="left">
        <asp:TextBox ID="txtStock" runat="server" Width="120px"/>
            <asp:RangeValidator ID="RangeValidator1"
            runat="server" ErrorMessage="*" ForeColor="Red" MaximumValue="9000" 
                MinimumValue="1" Type="Integer" ControlToValidate="txtStock"></asp:RangeValidator>
        </td>
        </tr>
        <tr>
        <td colspan="3">
        <asp:CheckBox ID="chkStockminimo" runat="server" Checked="false" Text="Solo En Punto de Reposicion" onclick="enableField()" />
        </td>
        </tr>
        </tbody>
        </table>
        </center>

    <br />
    <br /> 
    <center>
        <asp:GridView ID="gridProveedor" runat="server" AllowPaging="True" 
            AllowSorting="True" CellPadding="4" ForeColor="#333333" GridLines="None" 
            onpageindexchanged="gridProveedor_PageIndexChanged" 
            onpageindexchanging="gridProveedor_PageIndexChanging" 
            onsorting="gridProveedor_Sorting" HorizontalAlign="Center" 
            BorderStyle="Solid">
            <AlternatingRowStyle BackColor="White" />
            <EditRowStyle BackColor="#2461BF" />
            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#EFF3FB" HorizontalAlign="Center" />
            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
            <SortedAscendingCellStyle BackColor="#F5F7FB" />
            <SortedAscendingHeaderStyle BackColor="#6D95E1" />
            <SortedDescendingCellStyle BackColor="#E9EBEF" />
            <SortedDescendingHeaderStyle BackColor="#4870BE" />
        </asp:GridView>
        </center>  
    </div>
    </form>
</body>
</html>
